home *** CD-ROM | disk | FTP | other *** search
- package sun.plugin;
-
- import java.applet.Applet;
- import java.awt.BorderLayout;
- import java.awt.Component;
-
- public class BeansApplet extends Applet {
- Object bean;
- // $FF: renamed from: c java.awt.Component
- Component field_0;
-
- BeansApplet(Object var1) {
- this.bean = var1;
- if (this.bean instanceof Component) {
- this.field_0 = (Component)var1;
- }
-
- }
-
- public void init() {
- if (this.field_0 != null) {
- this.setLayout(new BorderLayout());
- }
-
- }
-
- public void start() {
- if (this.field_0 != null) {
- this.add(this.field_0);
- }
-
- }
-
- public void stop() {
- if (this.field_0 != null) {
- this.remove(this.field_0);
- }
-
- }
-
- public void destroy() {
- this.field_0 = null;
- this.bean = null;
- }
-
- public Object getBean() {
- return this.bean;
- }
- }
-